//
//  MeViewController.m
//  绘制脸
//
//  Created by 胡先剑 on 16/4/6.
//  Copyright © 2016年 胡先剑. All rights reserved.
//

#import "MeViewController.h"
#import "ParentsViewController.h"

@interface MeViewController ()

{
    NSString *room;
}

@end

@implementation MeViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (IBAction)fatherRoom:(UIButton *)sender
{
    room = @"father";
    [self performSegueWithIdentifier:@"parents" sender:nil];
}

- (IBAction)motherRoom:(UIButton *)sender
{
    room = @"mother";
    [self performSegueWithIdentifier:@"parents" sender:nil];
}

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    ParentsViewController *parentsRoom = segue.destinationViewController;
    parentsRoom.room = room;
}

@end
